package com.example.demo.Dao;

import com.example.demo.Entity.Count;
import com.example.demo.Entity.Courier;
import com.example.demo.Entity.Parcel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourierDao {
    List<Courier> getCourier();

    Courier inputCourierInfo(Integer company, String number, Integer expenses, String s_time, Integer state, Integer id, Integer u_id);

    Courier userSendCourierInfo(Courier courier);

    List<Courier> getNotProCourier();

    List<Courier> updateCourier(Integer p_id, String s_sname, String s_sphone, String s_saddress, String s_idcode, String s_rname, String s_rphone, String s_raddress);

    Integer deleteCourier(Integer id);

    List<Count> getSendCount();

    List<Courier> getUserCourier(String name);

    List<Courier> getCouriered();

    List<Courier> getCourierByname(String s_name);

    String getSendnameBypid(Integer p_id);
}
